{extend name='public/content'}

{block name="title"}
	首页
{/block}
{block name="body"}
<a href="{:url('index/index')}">商城首页</a>
<a href="{:url('user/index')}">我的</a>
<div class="layui-container"> 
  
 	{foreach($list as $key => $vo )}
		 <a href="{:url('index/store')}?id={$vo['id']}"> <div class="layui-row" style="height: 200px">
		    <div class="layui-col-md3">
		      	<img style="width: 100px;height: 100px" src="{$vo.logo}">
		    </div>
		    <div class="layui-col-md3">
		     	<?php //echo htmlspecialchars_decode($vo['detail'])?>
		    </div>
		     <div class="layui-col-md3">
		     	{$vo.description}
		    </div>
		    <div class="layui-col-md3">
		     	{$vo.id}
				{$vo.title}
				{$vo.address}
				{$vo.juli}
		    </div>
		     <div class="layui-col-md3">
		    </div>
			 <div>进入商店</div>
		 	</div>
		 </a>
  {/foreach}
	<div>
	 城市列表
	  {foreach ($citylist as $k=>$v)}
			城市地止
			<button onclick="getnewlist('{$v.key}')">{$v.value}</button>
	  {/foreach}
</div>
</div>

{/block}

{block name="script"}
<script type="text/javascript">
	function getnewlist(x){
		window.location.href = "{:url('index/index')}?city="+x;
	}
</script>
{/block}
	
{block name="style"}
 <style type="text/css">
 	
 </style>
{/block}
